package com.triadsystems.cashweb.controle.mbean.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.inject.Inject;
import javax.inject.Named;

import lombok.Getter;
import lombok.Setter;

import org.springframework.context.annotation.Scope;

import com.icon.infra.controle.utils.GenericoCRUDBean;
import com.triadsystems.cashweb.modelo.negocio.servicos.IFilialServico;
import com.triadsystems.cashweb.modelo.negocio.servicos.IFtpServico;
import com.triadsystems.cashweb.modelo.persistencia.entidades.Filial;
import com.triadsystems.cashweb.modelo.persistencia.entidades.Ftp;

@Named
@Scope("session")
public class FtpBean extends GenericoCRUDBean<Ftp, Ftp> {
	@Inject
	private IFtpServico ftpServico;
	
	@Inject
	private IFilialServico filialServico;
	
	@Getter @Setter
	private List<Filial> filiais; 
	
	@PostConstruct
	@Override
	protected void inicializarAtributosManagedBean() throws Exception {
		filiais = new ArrayList<Filial>();
	}

}
